<?php
    $headers = getallheaders();
    //$arrayName = array('appId:5d5ccd2a6a4747be9e3d67eb6c67b101','appKey:TPA0PyAHpJqNJhJ7ok+6tMyF8CjpY3coSo2/yoYdymsra9Wo3Y7XoA==');
    $postUrl = 'http://apidev.zonetry.com/ZONETRY20X/Token';//'http://apis.juhe.cn/mobile/get';//$headers['postUrl'];
    $postUrl = 'http://apis.juhe.cn/mobile/get';
    $postData = ['{}'];//$_POST;
    //$postData['phone'] = '13429667914';
    //$postData['key'] = '270c9ce68b8620bd7e112c21ff1f7a1c';
    $ch = curl_init();//初始化curl
    curl_setopt($ch, CURLOPT_URL,$postUrl);//抓取指定网页
    curl_setopt($ch, CURLOPT_HEADER, 0);//设置header
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//要求结果为字符串且输出到屏幕上
    curl_setopt($ch, CURLOPT_POST, 1);//post提交方式
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
    $data = curl_exec($ch);//运行curl
    curl_close($ch);
    echo $data;
?>